package com.shawn.baseappbygroovydsl.utils

import java.math.BigDecimal

/**
 * @author Secret
 * @since 2023/5/16
 */
object UtilCoin {

    /**
     * 保留2位小数
     * */
    fun getWithdrawActualAmountNew(coinNum: Double): String {
        return BigDecimal(coinNum.toString()).setScale(2, BigDecimal.ROUND_DOWN).toString()
    }
}